import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:search_people/value/topcolors.dart';

class DynamicLeaderCell extends StatelessWidget {
  const DynamicLeaderCell({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.only(bottom: 10.r),
      margin: EdgeInsets.only(top: 10.r),
      decoration: BoxDecoration(
          border: Border(
              bottom: BorderSide(
        color: TopColors.bg,
      ))),
      child: Column(
        children: [
          Text(
            '习近平等领导同志亲切会见出席党的二十大代表、特邀代表和列席人员',
            style: TextStyle(color: TopColors.black_33, fontSize: 14.sp),
          ),
          SizedBox(
            height: 10.r,
          ),
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: [
              Text(
                '腾讯网',
                style: TextStyle(color: TopColors.black_99, fontSize: 12.sp),
              ),
              Text(
                '2023-01-28',
                style: TextStyle(color: TopColors.black_99, fontSize: 12.sp),
              ),
            ],
          )
        ],
      ),
    );
  }
}
